<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <title>title</title>
    <link rel="stylesheet" type="text/css" href="../css/api.css"/>
    <style>
        html, body {
            background-color: #f8f8f8;
        }
        .main {
        	margin: 24px 0;
        	position: relative;
        }
        .main ul li {
        	margin-bottom: 9px;
        }
        .main ul li:last-child {
        	margin-bottom: 0;
        }
        .li_box {
        	display: -webkit-box;
        	display: -webkit-flex;
        	align-items: center;
			padding: 0 15px;
        }
        .li_box .li_boxl {
        	padding-right: 15px;
        }
        .li_box .li_boxl .num {
        	width: 16px;
        	height: 16px;
        	line-height: 16px;
        	text-align: center;
        	font-size: 12px;
        	border-radius: 50%;
        	color: #fff;
        	background-color: #e62442;
        	display: block;
        	position: relative;
        	z-index: 100;
        }
        .li_box .li_boxc .triangle_left {
		    width: 0;
		    height: 0;
		    border-top: 6px solid transparent;
		    border-right: 12px solid #fff;
		    border-bottom: 6px solid transparent;
		}
        .li_box .li_boxr {
        	flex: 1;
        	-webkit-flex: 1;
        	box-flex: 1;
        	-webkit-box-flex: 1;
        }
        .li_box .li_boxr .info {
        	padding: 12px 10px;
        	background-color: #fff;
        	font-size: 15px;
        	color: #333;
        }
        .line {
        	width: 1px;
        	background-color: #e62442;
        	position: absolute;
        	left: 23px;
        	z-index: 99;
        }
        .li_box .li_boxl .num.grey{
            background-color: #ccc;
        }
    </style>
</head>
<body>
    <div class="main">
    	<ul>
    		<li>
    			<div class="li_box">
    				<div class="li_boxl">
    					<span class="num">1</span>
    				</div>
    				<div class="li_boxc">
    					<div class="triangle_left"></div>
    				</div>
    				<div class="li_boxr">
    					<div class="info">填写申请信息并提交申请</div>
    				</div>
    			</div>
    		</li>
    		<li>
    			<div class="li_box">
    				<div class="li_boxl">
    					<span class="num">2</span>
    				</div>
    				<div class="li_boxc">
    					<div class="triangle_left"></div>
    				</div>
    				<div class="li_boxr">
    					<div class="info">提交成功，等待工作人员审核</div>
    				</div>
    			</div>
    		</li>
    		<li>
    			<div class="li_box">
    				<div class="li_boxl">
    					<span class="num grey">3</span>
    				</div>
    				<div class="li_boxc">
    					<div class="triangle_left"></div>
    				</div>
    				<div class="li_boxr">
    					<div class="info pass_or_not">&nbsp;</div>
    				</div>
    			</div>
    		</li>
    	</ul>
    	<div class="line"></div>
    </div>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/zepto.js"></script>
<script type="text/javascript">
    apiready = function(){
        var status = api.pageParam.status;
        setInitStyle(status);
    };
    
    function setInitStyle (_status) {
        if(_status == 1){
            $(".pass_or_not").html('正在审核中，请您近期保持手机通畅，等待工作人员与您联系');
            $('.line').css({
                'top': $('.main li:first-child').height() / 2,
                'bottom': ($('.main li:last-child').height())+5+($('.main li:nth-child(2)').height() / 2)
            });
        }else{
            $(".pass_or_not").html('恭喜您审核已通过！');
            $('.line').css({
                'top': $('.main li:first-child').height() / 2,
                'bottom': $('.main li:last-child').height() / 2
            });
            $(".grey").removeClass('grey');
        }
    };

	    
</script>
</html>